home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2003 November / PCWK1103B.iso / CINEBENCH 2003 / resource / modules / coffee / gui_coremsg.cox < prev    next >
Text File  |  2003-02-27  |  10KB  |  228 lines

  1. enum
  2. {
  3.     _DEFINE_CORE_MESSAGE_
  4. };
  5.  
  6. enum
  7. {
  8.     // IMPORTANT: maximum event number is 2000 (see GeEventsDoIt)
  9.     // priority groups start at each multiple of 50 
  10.  
  11.     MESSAGE_PAINTER_NEWAKTUBITMAP        = 650,    
  12.     MESSAGE_PAINTER_BITMAPCHANGED        = 651,
  13.  
  14.     MESSAGE_PAINTER_NEWAKTUBRUSH        = 700,
  15.     MESSAGE_PAINTER_BRUSHCHANGED        = 701,
  16.  
  17.     MESSAGE_PAINTER_NEWAKTUCOLOR        = 750,
  18.     MESSAGE_PAINTER_COLORCHANGED        = 751,
  19.  
  20.     MESSAGE_PAINTER_NEWAKTUPOLY            = 800,
  21.     MESSAGE_PAINTER_POLYCHANGED            = 801,
  22.  
  23.     MESSAGE_PAINTER_TOOLCHANGED            = 850,
  24.     MESSAGE_PAINTER_UNDOCHANGED            = 900,
  25.  
  26.     MESSAGE_PAINTER_INPUTDEVCHANGED    = 950,
  27.  
  28.     MESSAGE_OUTWINDOW_CHANGED                = 1000
  29. };
  30.  
  31. enum
  32. {
  33.     VIEW_SINGLE         = 0,
  34.     VIEW_2V             = 1,
  35.     VIEW_2H             = 2,
  36.     VIEW_2SPLIT_TOP     = 3,
  37.     VIEW_2SPLIT_BOTTOM  = 4,
  38.     VIEW_2SPLIT_LEFT    = 5,
  39.     VIEW_2SPLIT_RIGHT   = 6,
  40.     VIEW_4T             = 7,
  41.     VIEW_3SPLIT_TOP     = 8,
  42.     VIEW_3SPLIT_BOTTOM  = 9,
  43.     VIEW_3SPLIT_LEFT    = 10,
  44.     VIEW_3SPLIT_RIGHT   = 11,
  45.     VIEW_4H             = 12,
  46.     VIEW_4V             = 13,
  47.  
  48.     VIEW_DUMMY
  49. };
  50.  
  51. enum
  52. {
  53.     COREMSG_PAINTER                                            = 'CMpa',    // container request to painter core
  54.     COREMSG_AMBER                                                = 'amb6',
  55.     COREMSG_CINEMA                                            = 'CMci',    // container request to C4D core
  56.  
  57.     COREMSG_SETDATA                                            = 'setd', // modeling tools
  58.  
  59.     // data container
  60.     CM_DISABLED                                                    = 'disb',
  61.     CM_TYPE_BUTTON                                            = 'bttn',
  62.     CM_TYPE_STRING                                            = 'strg',
  63.         CM_STRING                                                    = 'strg',
  64.     CM_TYPE_INT                                                    = 'vint',
  65.     CM_TYPE_FLOAT                                                = 'vflt',
  66.         CM_VALUE_VAL                                            = 'valu',    // necessary
  67.         CM_VALUE_MIN                                            = 'mini',    // unnecessary
  68.         CM_VALUE_MAX                                            = 'maxi',    // unnecessary
  69.         CM_VALUE_MIN2                                            = 'min2', // for second range of slider with ints
  70.         CM_VALUE_MAX2                                            = 'max2', // for second range of slider with ints
  71.         CM_VALUE_STEP                                            = 'step',    // unnecessary
  72.         CM_VALUE_FORMAT                                        = 'frmt',    // unnecessary
  73.             FORMAT_REAL                                            = 'frea',
  74.             FORMAT_LONG                                            = 'flng',
  75.             FORMAT_PERCENT                                    = 'fpct',
  76.             FORMAT_DEGREE                                        = 'fdgr',
  77.             FORMAT_METER                                        = 'fmet',
  78.             FORMAT_FRAMES                                        = 'ffrm',
  79.             FORMAT_SECONDS                                    = 'fsec',
  80.             FORMAT_SMPTE                                        = 'fsmp',
  81.         CM_VALUE_FPS                                            = 'ffps',    // for FORMAT_FRAMES, FORMAT_SECONDS, FORMAT_SMPTE
  82.         CM_VALUE_QUADSCALE                                = 'quad',    // quadscale of the slider
  83.         CM_VALUE_TRISTATE                                    = 'tris',    // 0 == off, 1 == enabled/even values 2 == enabled/different values
  84.  
  85.     COREMSG_SYSTEM                                            = 'CMsy',    // container request to C4D OS
  86.         COREMSG_SYSTEM_GETINPUTDEVICEDATA = 'Sgdd', // input device data
  87.             CSD_INPUTDEV_NAME                                = 'idna', // input device data
  88.             CSD_INPUTDEV_ID                                    = 'idid', // input device data
  89.             CSD_INPUTDEV_SUPPORT                        = 'idsp',    // ...
  90.  
  91.         // request bitmap data
  92.         COREMSG_PAINTER_GETBITMAPDATA         = 'Pgbd', // get data of requested layer
  93.         COREMSG_PAINTER_SETBITMAPDATA          = 'Psbd', // set data of requested layer
  94.             PGD_BITMAP_MARKER                                = 'bmid',    // set/get bitmap marker; set only: 0 == active
  95.             PGD_BITMAP_NAME                                    = 'name', // set/get layer name (string)
  96.             PGD_BITMAP_TYPE                                    = 'type',    // get type of bitmap (enum)
  97.                 PGD_BITMAPTYPE_GROUP                    = 'grou',    // paint layer group
  98.                 PGD_BITMAPTYPE_PIXELLAYER            = 'pixe',    // paint layer
  99.             PGD_LAYER_STRENGTH                            = 'stre', // set/get coverage (real)
  100.             PGD_LAYER_BLENDING                            = 'blnd', // set/get blending (enum)
  101.                 PGD_BLEND_NORMAL                            = 'nrml',
  102.                 PGD_BLEND_DISSOLVE                            = 'disv',
  103.                 PGD_BLEND_DIFFERENCE                    = 'diff',
  104.                 PGD_BLEND_LIGHTEN                            = 'ligt',
  105.                 PGD_BLEND_DARKEN                            = 'dark',
  106.                 PGD_BLEND_MULTIPLY                        = 'mult',
  107.                 PGD_BLEND_SCREEN                            = 'scrn',
  108.                 PGD_BLEND_ADD                                    = 'add_',
  109.                 PGD_BLEND_EXCLUSION                        = 'excl',
  110.                 PGD_BLEND_ERASE                                = 'eras',
  111.                 PGD_BLEND_REPLACEVOXEL                = 'repl',
  112.             PGD_LAYER_MODE                                    = 'mode', // set/get mode (enum)
  113.                 PGD_MODE_RGB                                    = 'rgb_',
  114.                 PGD_MODE_RGBA                                    = 'rgba',
  115.                 PGD_MODE_GREY8                                = 'gry8',
  116.                 PGD_MODE_GREY8A                                = 'gr8a',
  117.                 PGD_MODE_CMYK                                    = 'cmyk',
  118.                 PGD_MODE_CMYKA                                = 'cmka',
  119.             PGD_LAYER_SHOW                                    = 'show', // set/get layer visibility
  120.             PGD_LAYER_XOFFSET                                = 'xoff', // set/get x offset
  121.             PGD_LAYER_YOFFSET                                = 'yoff', // set/get y offset
  122.             PGD_BITMAP_WIDTH                                = 'widt', // get width
  123.             PGD_BITMAP_HEIGHT                                = 'heig', // get height
  124.             PGD_MEMORY_USAGE                                = 'memo',    // get memory usage
  125.  
  126.         // request data of current tool
  127.         COREMSG_PAINTER_GETTOOL                        = 'Pgtd', // get tool mode data (container)
  128.         COREMSG_PAINTER_SETTOOL                        = 'Pstd', // set tool mode data (container)
  129.             PGD_TOOL_MODE                                        = 'bmmd',    // set/get tool mode
  130.                 PGD_TOOLMODE_DRAWBRUSH                = 'tdrw',    // draw with brush
  131.                 PGD_TOOLMODE_FILLBITMAP                = 'fill', // fill bitmap
  132.                 PGD_TOOLMODE_MAGICWAND                = 'magc', // fill bitmap
  133.                 PGD_TOOLMODE_PICKUP                        = 'pick', // pick color
  134.                 PGD_TOOLMODE_MOVESPLINE                = 'spmv',    // move spline
  135.                 PGD_TOOLMODE_EDITSPLINE                = 'sped', // edit spline
  136.                 PGD_TOOLMODE_MOVELAYER                = 'lymv',    // move layer
  137.                 PGD_TOOLMODE_DRAWLINE                    = 'line',    // draw line
  138.                 PGD_TOOLMODE_DRAWCIRCLE                = 'crcl',    // draw circle
  139.                 PGD_TOOLMODE_DRAWRECTANGLE        = 'rect', // draw rectangle
  140.                 PGD_TOOLMODE_DRAWTEXT                    = 'text', // text tool
  141.                 PGD_TOOLMODE_TRANSFORMBITMAP    = 'trns', // distort bitmap
  142.                 PGD_TOOLMODE_UVEDIT                        = 'uved', // uvedit mode
  143.                 PGD_TOOLMODE_SELECTIONTOOLS        = 'sele',    // draw circle
  144.                 PGD_TOOLMODE_SELECTCOLORRANGE    = 'selc',    // select colorrange
  145.                 PGD_TOOLMODE_MAGNIFY                    = 'magn', // magnify
  146.                 PGD_TOOLMODE_CLONE            = 'clon', // clone tool
  147.  
  148.         // for all tools
  149.         PGD_TOOLACTIVE                                        = 'Pact', // tool is active
  150.  
  151.         COREMSG_PAINTER_GETBRUSHDATA            = 'Pgbr',    // get brush data
  152.         COREMSG_PAINTER_SETBRUSHDATA            = 'Psbr',    // set brush data
  153.             PGD_BRUSH_MARKER                                = 'mark',    // brush marker
  154.             PGD_BRUSH_NAME                                    = 'name',    // brush name
  155.             PGD_BRUSH_PRESSURE                            = 'pres', // brush pressure (real)
  156.             PGD_BRUSH_PRESSURE_MODIFY                = 'mprs',    // pressure control
  157.                 PGD_MODIFY_NONE                                = 'none', // no control
  158.                 PGD_MODIFY_PENPRESSURE                = 'pprs', // pen pressure
  159.                 PGD_MODIFY_PENTILT                        = 'ptlt', // pen tilt
  160.                 PGD_MODIFY_PENDIRECTION                = 'pdir', // pen direction
  161.                 PGD_MODIFY_DRAWDIRECTION            = 'ddir', // draw direction
  162.                 PGD_MODIFY_DRAWRANDOM                    = 'drnd', // randomness
  163.                 PGD_MODIFY_DRAWWHEEL                    = 'dwhl', // mousewheel
  164.                 PGD_MODIFY_DRAWDISTANCE                = 'ddst', // distance
  165.             PGD_BRUSH_SIZE                                    = 'size', // brush size (real 1..500)
  166.             PGD_BRUSH_SIZE_MODIFY                        = 'msiz', // brush size control
  167.             PGD_BRUSH_HARD                                    = 'hard', // brush hardness (real 0..1)
  168.             PGD_BRUSH_HARD_MODIFY                        = 'mhar', // brush hardness control
  169.             PGD_BRUSH_DISTANCE                            = 'dist', // brush distance (real 1..oo)
  170.             PGD_BRUSH_DISTANCE_MODIFY                = 'mdis', // brush distance control
  171.             PGD_BRUSH_DISTANCE_ONOFF                = 'mdon', // distance on/off
  172.  
  173.         COREMSG_PAINTER_GETFILLDATA                = 'Pgfl',    // get fill data
  174.         COREMSG_PAINTER_SETFILLDATA                = 'Psfl',    // set fill data
  175.             PGD_FILL_TOLERANCE                            = 'tole', // color tolerance (real 0..1)
  176.             PGD_FILL_AA                                            = 'anti', // antialiasing (bool)
  177.             PGD_FILL_MERGELAYER                            = 'merg',    // merge layer (bool)
  178.  
  179.         COREMSG_PAINTER_GETMAGICDATA            = 'Pgma',    // get fill data
  180.         COREMSG_PAINTER_SETMAGICDATA            = 'Psma',    // set fill data
  181.             PGD_MAGIC_MODE                                    = 'mamo', // mode
  182.                 PGD_MAGIC_NEWSELECT                        = 'senw', // create new selection
  183.                 PGD_MAGIC_NEWINVERSESELECT        = 'seiv', // create invert selection
  184.                 PGD_MAGIC_ADDSELECT                        = 'sead', // add to selection
  185.                 PGD_MAGIC_SUBSELECT                        = 'sesb', // subtract from selection
  186.  
  187.         COREMSG_PAINTER_GETLINEDATA                = 'Pgli',    // get line data
  188.         COREMSG_PAINTER_SETLINEDATA                = 'Psli',    // set line data
  189.             PGD_LINE_WIDTH                                    = 'liwd', // line thickness (real)
  190.             PGD_LINE_BEGIN                                    = 'libg',    // start form
  191.             PGD_LINE_END                                        = 'lied',    // end form
  192.                 PGD_CAPS_NONE                                    = 'none', 
  193.                 PGD_CAPS_OUT_CIRCLE                        = 'ocrc', 
  194.                 PGD_CAPS_IN_CIRCLE                        = 'icrc',
  195.                 PGD_CAPS_OUT_SPICE                        = 'ospc',
  196.                 PGD_CAPS_IN_SPICE                            = 'ispc',
  197.                 PGD_CAPS_OUT_BEVEL                        = 'obvl',
  198.                 PGD_CAPS_IN_BEVEL                            = 'ibvl',
  199.                 PGD_CAPS_ARROW                                = 'arrw',
  200.             PGD_POLY_DRAWMODE                                = 'pldr',    // draw mode (filled/outline)
  201.                 PGD_DRAWMODE_FILLED                        = 'dmfl', // filled
  202.                 PGD_DRAWMODE_OUTLINED                    = 'dmol', // outline
  203.  
  204.         COREMSG_PAINTER_GETPOLYFILLDATA        = 'Pgpf',    // get polyfill data
  205.         COREMSG_PAINTER_SETPOLYFILLDATA        = 'Pspf',    // set polyfill data
  206.             PGD_POLYFILL_BORDER                            = 'pfbd', // soft edge
  207.             PGD_POLYFILL_ANTIALIAS                    = 'anti', // antialiasing
  208.  
  209.  
  210.         COREMSG_PAINTER_GETCIRCLEDATA            = 'Pgcr',    // get circle data
  211.         COREMSG_PAINTER_SETCIRCLEDATA            = 'Pscr',    // set circle data
  212.             PGD_CIRCLE_CIRCLEMODE                        = 'crmd',
  213.                 PGD_CIRCLEMODE_DIAMETER                = 'cdia',
  214.                 PGD_CIRCLEMODE_RADIUS                    = 'crad',
  215.             PGD_CIRCLE_ASPECTRATIO                    = 'casp',    // aspect ratio circle
  216.  
  217.         COREMSG_PAINTER_GETPICKUPDATA            = 'Pgpd',    // get circle data
  218.         COREMSG_PAINTER_SETPICKUPDATA            = 'Pspd',    // set circle data
  219.             PGD_PICKUP_MODE                                    = 'mode', // mode
  220.                 PICKUP_MODE_SOLIDCOLOR                = 'soli', // mode
  221.                 PICKUP_MODE_TEXTURECLONE            = 'clon', // mode
  222.                 PICKUP_MODE_TEXTUREBRUSH            = 'brus', // mode
  223.             PGD_PICKUP_SOLID_RANGE                    = 'Srad', // sample radius
  224.             PGD_PICKUP_SOLID_ENABLESAMPLING    = 'Sran', // enable sampling
  225.  
  226.     COREMSG_DUMMY 
  227. };
  228.